﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VCC.Site.ViewModels.ContactModel>" %>
<div class="m">
    <table cellpadding="0" cellspacing="0" class="contactInfo" width="100%">
        <tbody>
            <tr>
                <td colspan="2" class="contactName" align=center height="40px;">
                   <span style="font-weight:bold; font-size:16px;"> Trung tâm du học IEC - International Education Connections</span>
                </td>
            </tr>
            <tr>
                <td height="30px;" colspan="2" style="font-weight:bold">
                    Địa chỉ: <span class="gr"> Ground Floor Liberty Plaza, Number 27/256 Chapel Rd South Bankstown NSW 2200</span>
                </td>
            </tr>
            <tr>
                <td height="30px;" colspan="2" style="font-weight:bold">
                    Điện thoại: <span class="gr">02 8764 8993</span>
                </td>
            </tr>
            <tr>
                <td height="30px;" colspan="2" style="font-weight:bold">
                    Fax: <span class="gr">02 8764 8991</span>
                </td>
            </tr>
            <tr>
                <td height="30px;" colspan="2" style="font-weight:bold">
                    Email: <span class="gr">infor@iecspecialist.com.au</span>
                </td>
            </tr>
        </tbody>
    </table>
    <br />
    <div style="margin-bottom:10px; border-bottom:1px solid #FF6600;font-weight:bold; text-align:center; padding-bottom:5px;">
        Gửi liên hệ với IEC - International Education Connections
    </div>
    <form method="post" action="/Contact/Send" name="siteForm" id="siteForm" onsubmit="return checkSubmit();">
    <table cellpadding="0" cellspacing="0" class="contactForm" width="100%">
        <tbody>
            <tr>
                <td height="30px;" style="font-weight:bold" width="85px;">
                    Họ và tên (<font color="red">*</font>):
                </td>
                <td>
                    <%= Html.TextBoxFor(m=>m.ContactUs.Name, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 250px; height: 24px;" })%>
                </td>
            </tr>
            <tr>
                <td height="30px;" style="font-weight:bold">
                    Email:
                </td>
                <td>
                    <%= Html.TextBoxFor(m=>m.ContactUs.Email, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 250px; height: 24px;" })%>
                </td>
            </tr>
            <tr>
                <td height="30px;" style="font-weight:bold">
                        Điện thoại (<font color="red">*</font>):
                </td>
                <td>
                    <%= Html.TextBoxFor(m => m.ContactUs.PhoneNumber, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 250px; height: 24px;" })%>
                </td>
            </tr>
            <tr>
                <td height="30px;" style="font-weight:bold">
                        Địa chỉ :
                </td>
                <td>
                    <%= Html.TextBoxFor(m => m.ContactUs.Address, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 250px; height: 24px;" })%>
                </td>
            </tr>
            <tr>
                <td height="30px;" style="font-weight:bold">
                    Tiêu đề (<font color="red">*</font>):
                </td>
                <td>
                    <%= Html.TextBoxFor(m => m.ContactUs.Title, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 250px; height: 24px;" })%>
                </td>
            </tr>
            <tr>
                <td height="30px;" style="font-weight:bold">
                    Nội dung(<font color="red">*</font>):
                </td>
                <td>
                    <%= Html.TextAreaFor(m => m.ContactUs.Content, new { @class = "inputbox", style = "border: 1px solid #BBBBBB; width: 450px; height: 150px;" })%>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" height="30px;" style="font-weight:bold">
                    <input type="submit" value="Gửi" style="width:80px;" />
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</div>
    <script type="text/javascript">
        //Check submit
        function checkSubmit() {
            var name = $('#name').val();
            var tel = $('#tel').val();
            var subject = $('#subject').val();
            var body = $('#body').val();
            if (name == "") { alert("Vui lòng nhập họ tên"); return false; }
            if (tel == "") { alert("Vui lòng nhập số điện thoại của bạn"); return false; }
            if (subject == "") { alert("Vui lòng nhập tiêu đề"); return false; }
            if (body == "") { alert("Vui lòng nhập nội dung"); return false; }
            return true;
        }
    </script>
